what chemicals are used in wastewater treatment